  
<?php

$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDTour";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/MDTourGeneral/CTourTableDraw.php");
include_once("$ruta/star.php");
include_once("$ruta/view/CDrawMenuTour.php");
include_once("$ruta/MDTourGeneral/CTourEditDraw.php");
include_once("$ruta/MDTourGeneral/CDrawPageReg.php");

if (!isset($_GET['codigo'])) {$_GET['codigo'] = "NULL"; }

$idRest=$_GET['codigo'];

$items=array("Nuevo Tour"=>"CSmallDefinePack.php","Nuevo paquete"=>"CTourEdit.php?codigo=159&default=2","Ver paquetes"=>"/viventura/MDTour/","Otra"=>"g");

CDrawMenuTour::getInstance()->setMenu($items);
CDrawMenuTour::getInstance()->rigth_side_begin();//empieza lado derecho 
CDrawMenuTour::getInstance()->DrawDivAdBegin("content_area_user_title","1");echo "<h1>Destino Sur</h1>";
CDrawMenuTour::getInstance()->DrawDivAdEnd();

  
    $val_restaurantes = array (":required","",":required",":url","");
    $restaurantes=array("NomRes"=>"Nombre","TypRes"=>"Tipo","DirRes"=>"Dirección","WebSitRes"=>"Sitio Web","PostCodRes"=>"Código Postal");
    CTourEditDraw::getInstance()->DrawTextFillBox("",$restaurantes,"restaurant","idRest",$idRest,$val_restaurantes);
    

    $val_crestaurantes = array (":required",":required");
    $crestaurantes=array("FirstConRes"=>"Nombre del contacto","LastConRes"=>"Apellidos del contacto");
    CTourEditDraw::getInstance()->DrawTextFillBox("",$crestaurantes,"restaurant","idRest",$idRest,$val_crestaurantes);
    
    
    $val_trestaurantes = array (":integer",":integer",":integer",":integer");
    $trestaurantes=array("TelRes"=>"Telefono","FaxRes"=>"Fax","MovRes"=>"Móvil");
    CTourEditDraw::getInstance()->DrawTextFillBox("",$trestaurantes,"restaurant","idRest",$idRest,$val_trestaurantes);
    
    CDrawPageReg::getInstance()->DrawSubmmit("Actualizar");
?>